<!DOCTYPE html>
<html lang="zh-cn">
<head>
<include file="BlockBase:header_meta" />
<include file="BlockSeo:user_center_index" />
</head>
<body class="bg-light user-center">
<include file="BlockTheme:header" />
<main class="container">
<div class="row mt-3">
<div class="col-md-2 order-2 order-md-1 mb-3">
	<include file="BlockBase:user_center_nav" />
</div>
<div class="col-md-10 order-1 order-md-2 mb-3">
<div class="card">
	<div class="card-header">
		帐户管理
	</div>



	<div class="card-body pb-0">
        <div class="text-right">  <small>     <a href="javascript:;" class=" user-change-pwd">修改密码</a> </small></div>
		<p class="text-center">

          <a href="{:ff_url('user/center')}"><img class="rounded-circle user-face border p-2" src="/Tpl/ffcms02/user.png" align="我的头像" width="96" height="96"></a>
        </p>
        <p class="text-center" > <a href="{:ff_url('user/index',array('id'=>$user_id))}" target="_blank"> {$user_phone}({$user_name|htmlspecialchars|nb})</a></p>
        <br>
        <div class="row">

            <div class="col-md-6 border-bottom-line">
                <dt class="margin-user-center">我的影币 (<small> {$user_score|default=0}个 </small>) </dt>
                <dd> <small> 影币可用来支付需付费点播的影片或购买VIP权限 </small>
                    <br>
                    <small>  <if condition="ff_PaymentItem()"><a class=" user-score-payment" href="javascript:;" style="margin-right: 10px; ">在线充值</a></if>
                    <if condition="('pay_card_sell')"><a class="user-score-card" href="javascript:;">卡密充值</a></if>
                    </small>
                </dd>
            </div>
            <div class="col-md-6 border-bottom-line">
                <dt class="margin-user-center" >VIP权限 (<small> 到期时间：{$user_deadtime|date='Y/m/d',###}</small>)  </dt>
                <dd>
                    <small>VIP权限到期后将不能观看付费影片， </small>
                    <br>

                   <small>  <a href="javascript:;" class="user-score-upvip">升级VIP</a> </small>
                </dd>
                </dd>
            </div>
        </div>
        <div class="row" >

            <div class="col-md-6 border-bottom-line">
                <dt class="margin-user-center">登录记录 </dt>
                <dd>
                    <small>
                    最后一次登录IP：{$user_logip} <br>
                    最后一次登录时间： {$user_logtime|date='Y/m/d H:i:s',###}
                    </small>
                </dd>
            </div>
            <div class="col-md-6 border-bottom-line">
                <dt class="margin-user-center" >  每日可观看视频数（<small>{$viewNums['viewNum']}个</small>）   </dt>
                <dd>
                    <small> 邀请奖励 每邀请一个用户注册后将获得 ({$viewNums['everyChildNum']}) 个视频观看数、（{:C("user_register_score_pid")}）影币 奖励
                        推广链接：<a href="{:ff_url('user/register',array('id'=>$user_id))}" target="_blank">{$site_url}{:ff_url('user/register',array('id'=>$user_id))}</a>
                    </small>
                </dd>
            </div>
        </div>
        <br><br><br>




    </dl>
	</div>


</div><!--card end -->
<script src="https://cdn.bootcss.com/jquery-image-upload/1.2.0/jQuery-image-upload.min.js"></script>
<script>
	$(".user-face").imageUpload({
		formAction: "{:ff_url('user/face')}",
		inputFileName:'file',
		browseButtonValue: '修改头像',
		browseButtonClass:'btn btn-default btn-sm',
		automaticUpload: true,
		hideDeleteButton: true,
		hover:true
	})
	$(".user-face").on("imageUpload.uploadFailed", function (ev, err) {
		alert(err);
	});
</script>
</div>
</div>
</main>
<include file="BlockTheme:footer" />
</body>
</html>
